package com.example.springboot_demo.demos.web.book_work.Pojo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel("用户信息")
public class User {

    private Long userId;
    @ApiModelProperty("用户名")
    private String name;
    @ApiModelProperty("用户所借书籍")
    private List<Book> borrowedBooks = new ArrayList<>();
}
